<include file="Layout/header" title="编辑数据" />
<include file="Layout/sidebar" />
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            数据管理
            <small>编辑数据</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 数据管理</a></li>
            <li class="active">编辑数据</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <script src="__PLUGIN__/bootstrapvalidator/js/bootstrapValidator.min.js"></script>
        <link rel="stylesheet" href="__PLUGIN__/bootstrapvalidator/css/bootstrapValidator.min.css">
        <!-- Horizontal Form -->
        <div class="box box-info" style="width:90%;margin: 0 auto;">
            <div class="box-header with-border">
                <h3 class="box-title">数据参数</h3>
            </div>
            <!-- /.box-header -->
            <!-- form start -->
            <form class="form-horizontal" action="" method="post" enctype="multipart/form-data">
                <div class="box-body">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">
                            印章图片
                            <br/><a href="__CONTROLLER__/uploadImg/id/{$data.id}/field/kid" class="badge bg-green">重新上传</a>
                        </label>
                        <div class="col-sm-10">
                            <img src="{$data.kid}" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="yw2" class="col-sm-2 control-label">印文</label>
                        <div class="col-sm-10">
                            <input type="hidden" name="id" value="{$data.id}" />
                            <input type="text" class="form-control" id="yw2" name="yw2" value="{$data.yw2}" placeholder="印文">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="zhulu" class="col-sm-2 control-label">著録</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="zhulu" name="zhulu" value="{$data.zhulu}" placeholder="著録">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="store" class="col-sm-2 control-label">藏所</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="store" name="store" value="{$data.store}" placeholder="藏所">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="shidai" class="col-sm-2 control-label">时代</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="shidai" name="shidai" value="{$data.shidai}" placeholder="时代">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="xingzhi" class="col-sm-2 control-label">性质</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="xingzhi" name="xingzhi" value="{$data.xingzhi}" placeholder="性质">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="zhidi" class="col-sm-2 control-label">质地</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="zhidi" name="zhidi" value="{$data.zhidi}" placeholder="质地">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="niushi" class="col-sm-2 control-label">钮式</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="niushi" name="niushi" value="{$data.niushi}" placeholder="钮式">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="beizhu" class="col-sm-2 control-label">备注</label>
                        <div class="col-sm-10">
                            <textarea class="form-control" id="beizhu" name="beizhu" rows="3" placeholder="备注 ...">{$data.beizhu}</textarea>
                        </div>
                    </div>
                    <if condition='$data.biankuan1 === null'>
                        <div class="form-group">
                            <label for="img" class="col-sm-2 control-label">边款一</label>
                            <div class="col-sm-10">
                                <a href="__CONTROLLER__/uploadImg/id/{$data.id}/field/biankuan1" class="badge bg-green">上传图片</a>
                            </div>
                        </div>
                        <else/>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">
                                边款一
                                <br/><a href="__CONTROLLER__/uploadImg/id/{$data.id}/field/biankuan1" class="badge bg-green">重新上传</a>
                            </label>
                            <div class="col-sm-10">
                                <img src="{$data.biankuan1}" />
                            </div>
                        </div>
                    </if>
                    <if condition='$data.biankuan2 === null'>
                        <div class="form-group">
                            <label for="img" class="col-sm-2 control-label">边款二</label>
                            <div class="col-sm-10">
                                <a href="__CONTROLLER__/uploadImg/id/{$data.id}/field/biankuan2" class="badge bg-green">上传图片</a>
                            </div>
                        </div>
                        <else/>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">
                                边款二
                                <br/><a href="__CONTROLLER__/uploadImg/id/{$data.id}/field/biankuan2" class="badge bg-green">重新上传</a>
                            </label>
                            <div class="col-sm-10">
                                <img src="{$data.biankuan2}" />
                            </div>
                        </div>
                    </if>
                    <if condition='$data.biankuan3 === null'>
                        <div class="form-group">
                            <label for="img" class="col-sm-2 control-label">边款三</label>
                            <div class="col-sm-10">
                                <a href="__CONTROLLER__/uploadImg/id/{$data.id}/field/biankuan3" class="badge bg-green">上传图片</a>
                            </div>
                        </div>
                        <else/>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">
                                边款三
                                <br/><a href="__CONTROLLER__/uploadImg/id/{$data.id}/field/biankuan3" class="badge bg-green">重新上传</a>
                            </label>
                            <div class="col-sm-10">
                                <img src="{$data.biankuan3}" />
                            </div>
                        </div>
                    </if>
                    <if condition='$data.biankuan4 === null'>
                        <div class="form-group">
                            <label for="img" class="col-sm-2 control-label">边款四</label>
                            <div class="col-sm-10">
                                <a href="__CONTROLLER__/uploadImg/id/{$data.id}/field/biankuan4" class="badge bg-green">上传图片</a>
                            </div>
                        </div>
                        <else/>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">
                                边款四
                                <br/><a href="__CONTROLLER__/uploadImg/id/{$data.id}/field/biankuan4" class="badge bg-green">重新上传</a>
                            </label>
                            <div class="col-sm-10">
                                <img src="{$data.biankuan4}" />
                            </div>
                        </div>
                    </if>
                </div>
                <!-- /.box-body -->
                <div class="box-footer">
                    <button type="reset" class="btn btn-default">重置</button>
                    <button type="submit" class="btn btn-info pull-right">提交</button>
                </div>
                <!-- /.box-footer -->
            </form>
        </div>
    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->
<script type="text/javascript">
    //jQuery代码
    $(function () {
        $('form').bootstrapValidator({
            message: 'This value is not valid',
            feedbackIcons: {
                valid: 'glyphicon glyphicon-ok',
                invalid: 'glyphicon glyphicon-remove',
                validating: 'glyphicon glyphicon-refresh'
            },
            fields: {
                yw2: {
                    validators: {
                        notEmpty: {
                            message: '印文不能为空'
                        }
                    }
                }
            }
        });
    });
</script>
<include file="Layout/footer" />